package com.wlz.basic;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

/**
 * @author wlz
 * @date 2022-07-03  3:44 下午
 */
@Slf4j
@Component
public class ScConsumer {

    @StreamListener(Sink.INPUT)
    public void onMessage(String message) {
        log.info("received message: {} , from binding {} ", message , Sink.INPUT);
    }
}
